import http from "../utils/http";
export default{
    content(){
        return http.get("/home/content")
    },
	flashPromotion(){
	    return http.get("/home/flashPromotion")
	},
    hotProductList(pageNum,pageSize){
        return http.get("/home/hotProductList", {pageNum,pageSize})
    },
    newProductList(pageNum,pageSize){
        return http.get("/home/newProductList", {pageNum,pageSize})
    },
    rroductCateList(parentId){
        return http.get("/home/productCateList/"+parentId)
    },
    recommendProductList(pageNum,pageSize){
        return http.get("/home/recommendProductList", {pageNum,pageSize})
    },
    subjectList(cateId,pageNum,pageSize){
        return http.get("/home/subjectList", {cateId,pageNum,pageSize})
    },
	accessToken(){
	    return http.get("/wx/accessToken")
	},
	getliveinfo(limit ,start ){
	    return http.post("/wx/getliveinfo?limit="+limit+"&start="+start)
	},
	getWxAcodeunLimit(page ,scene ){
	    return http.post("/wx/getWxAcodeunLimit?page="+page+"&scene="+scene)
	},
}